<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <%@ include file="/WEB-INF/include/meta.jsp"%>
  <%@ include file="/WEB-INF/include/css.jsp"%>
  <link href="${ctx.resource}/css/goals.css" rel="stylesheet">
  <title>改变编辑页</title>
</head>
<body>
  <div class="page-group">
    <div class="page page-current">
      <header class="bar bar-nav fs-header-small">
        <a href="${ctx.host}/rounds/${courseRoundId}/result-report<c:choose><c:when test='${not empty scheduleId}'>?scheduleId=${scheduleId}</c:when><c:otherwise><c:if test='${not empty back}'>?back=${back}</c:if></c:otherwise></c:choose>" class="icon icon-left pull-left"></a>
        <h1 class="title">编辑${weeks}周的改变</h1>
      </header>
      
      <div class="bar bar-footer">
        <a class="button save-button">保存</a>
      </div>
      <div class="content edit-goals">
        <form method="POST" action="${ctx.host}/rounds /${courseRoundId}/result-report/edit-change">
          <input type="hidden" name="_method" value="PATCH" />
          <div class="ev-subtitle" style="background: #dcdcdc;">基础力量</div>
          <div class="list-block no-margin edit-change-box">
            <ul>
              <li>
                <div class="item-content item-link">
                  <div class="item-inner">
                    <div class="item-title item-label">静蹲：</div>
                    <div class="item-input">
                      <input type="text" data-name="staticSquat" value="${resultReport.staticSquat.staticSquat}" placeholder="请选择"/>
                      <input type="hidden" name="staticSquat" value="" placeholder="请选择"/>
                    </div>
                  </div>
                </div>
              </li>
              <li>
                <div class="item-content item-link">
                  <div class="item-inner">
                    <div class="item-title item-label">俯卧撑(30s)：</div>
                    <div class="item-input">
                      <input type="text" data-name="pushUp" value="${resultReport.pushUp.pushUp}" placeholder="请选择"/>
                      <input type="hidden" name="pushUp" value=""/>
                    </div>
                  </div>
                </div>
              </li>
              <li>
                <div class="item-content item-link">
                  <div class="item-inner">
                    <div class="item-title item-label">两头起(30s)：</div>
                    <div class="item-input">
                      <input type="text" data-name="vUp" value="${resultReport.vUp.vUp}" placeholder="请选择"/>
                      <input type="hidden" name="vUp" value=""/>
                    </div>
                  </div>
                </div>
              </li>
              <li class="align-top">
                <div class="item-content">
                  <div class="item-inner">
                    <div class="item-title item-label" style="min-width: 5rem;">后续计划：</div>
                    <div class="item-input">
                      <textarea rows="3" name="basicForcePlan" placeholder="请输入">${resultReport.basicForcePlan}</textarea>
                    </div>
                  </div>
                </div>
              </li>
            </ul>
          </div>
            
          <div class="ev-subtitle" style="background: #dcdcdc;">心肺测试</div>
          
          <div class="list-block no-margin edit-change-box">
            <ul>
              <li>
                <div class="item-content item-link">
                  <div class="item-inner">
                    <div class="item-title item-label" style="min-width: 7rem;">一分钟波比跳：</div>
                    <div class="item-input text-right">
                      <input type="text" data-name="standardBobi"  value="${empty resultReport.standardBobi ? '' : (resultReport.standardBobi ? '标准' : '简化')}" placeholder="请选择" />
                      <input type="hidden" name="standardBobi">
                    </div>
                  </div>
                </div>
              </li>
              <li>
                <div class="item-content">
                  <div class="item-inner">
                    <div class="item-title item-label" style="min-width: 7.2rem;">一分钟波比跳数量：</div>
                    <div class="item-input">
                      <input type="number" name="bobi" ${resultReport.bobi} placeholder="请输入&nbsp;&nbsp;&nbsp;&nbsp;">
                    </div>
                  </div>
                </div>
              </li>
              <li class="align-top">
                <div class="item-content">
                  <div class="item-inner">
                    <div class="item-title item-label">其他：</div>
                    <div class="item-input">
                      <textarea rows="3" name="heartLungRemark" placeholder="请输入">${resultReport.heartLungRemark}</textarea>
                    </div>
                  </div>
                </div>
              </li>
              <li class="align-top">
                <div class="item-content">
                  <div class="item-inner">
                    <div class="item-title item-label">后续计划：</div>
                    <div class="item-input">
                      <textarea rows="3" name="heartLungPlan" placeholder="请输入">${resultReport.heartLungPlan}</textarea>
                    </div>
                  </div>
                </div>
              </li>
            </ul>
          </div>
          
          <div class="ev-subtitle" style="background: #dcdcdc;">其他</div>
          <div class="list-block no-margin edit-change-box">
            <ul>
              <li class="align-top">
                <div class="item-content">
                  <div class="item-inner">
                    <div class="item-title item-label">其他：</div>
                    <div class="item-input">
                      <textarea rows="3" name="remark" placeholder="请输入">${resultReport.remark}</textarea>
                    </div>
                  </div>
                </div>
              </li>
              <li class="align-top">
                <div class="item-content">
                  <div class="item-inner">
                    <div class="item-title item-label">后续计划：</div>
                    <div class="item-input">
                      <textarea rows="3" name="otherPlan" placeholder="请输入">${resultReport.otherPlan}</textarea>
                    </div>
                  </div>
                </div>
              </li>
            </ul>
            
          </div>
          <button type="submit" class="submit-btn" style="display: none;"></button>
        </form>
      </div>
    </div>
  </div>
  
  <%@ include file="/WEB-INF/include/script.jsp"%>
  <d:resource type="script" root="${ctx.resource}/build" src="js/page/result/change-edit.js" />
  <script type="text/javascript">
    require(['page/result/change-edit'], function(page) {
      page.init({
        'courseRoundId': '${courseRoundId}'
      })
    })
  </script>
</body>
</html>